ScanDeviceManager GetPriorityData

Sends a priority data message to a controller. Priority messages are used to fetch information from the marking controllers on demand. Refer Priority Messages section of the SMC Software Reference manual for more information.

This method blocks the calling thread until the data is returned or a timeout occurs.

 

public void GetPriorityData(string deviceName, string strPriorityMessage, out string pstrRequestedData, uint uiTimeout)

 

Return value

void  

 

Parameters

string deviceName The unique name of the device.
string strPriorityMessage Priority message in XML format
string pstrRequestedData The XML data returned by the SMC device
uint uiTimeout Duration for attempting call in seconds. Minimum 1 second.

 

Exceptions

DeviceNotFoundException Throws when the device with the given name is not found
PriorityMessageFailedException Throws when the priority message fails to return

 

Example

Copy
string priorityMessage = "<Data type='ServiceData'> <Msg id='GetCalFactors'/> </Data>";
string requestedData ="";

scanDeviceManager.GetPriorityData(GetselectedDeviceUniqueName(), priorityMessage, out requestedData, 10);